Repository navigation
Conversation
Display large per-pane numbers with Ctrl+Cmd+G and focus by number. Account for hidden and parked DOM nodes, cancel stale selections, and document the optional tmux-style binding. Add isolated integration checks, behavioral exclusion assertions, and forced cleanup coverage. Luau typecheck and focused integration passed. Full integration passed through 12-pane, zoom and PiP checks but encountered a native ctl tab switch timeout.
|
Would you prefer pane-number navigation to become a built-in action, alongside session switching and directional pane focus, rather than remain an example plugin? This PR demonstrates the interaction, but a native implementation could avoid the private CSS/DOM-order dependency and support immediate selection without Enter. I found the public SDK and examples in this repository, but could not find the Tern application source (where built-in commands such as Related: #103. |
Summary
Add a
pane-hintsexample plugin that displays large numbers directly over panes in the active tab, including picture-in-picture panes. Press Ctrl+Cmd+G on macOS, type a number, and press Enter to focus that pane; Escape cancels. An optional tmux-style binding is documented.The implementation maps CSS positions across all window panes so hidden tabs and parked panes do not shift the displayed numbers onto the wrong pane. It also rejects stale selections after focus or layout changes.
Related to #103. This is an SDK example/prototype, rather than the complete native feature proposed in that issue.
Screenshot
Two tiled panes and one picture-in-picture pane in a clean Tern 0.9.4 test window:
Validation
git diff --checkpassed.ctl tab 1timeout after 20 seconds. The full run is therefore not reported as passing; the affected small-layout scenarios passed separately.Limits
session:panes()DOM ordering; these need verification after Tern upgrades.Need help on this PR? Tag
@codesmith-botwith what you need.